﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Site1.Master" AutoEventWireup="true" CodeBehind="Nuevo.aspx.cs" Inherits="BoxScore.juego.Nuevo" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="lateral1" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="lateral2" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="lateral3" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="contenido" runat="server">


    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div>

                <table>
               
               
                    <tr>
                        
                        <td colspan="2"> <h4>Visitante</h4>
                            <center>
                            
                            <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
                                    DataSourceID="ObjectDataSource1" DataTextField="name" DataValueField="id">
                            </asp:DropDownList>
                                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                                    SelectMethod="getEquiposPorTorneo" TypeName="BoxScore.Model.BoxScoreBD">
                                    <SelectParameters>
                                        <asp:QueryStringParameter DefaultValue="" Name="idliga" QueryStringField="liga" 
                                            Type="Int32" />
                                        <asp:QueryStringParameter Name="idcategoria" QueryStringField="categoria" 
                                            Type="Int32" />
                                    </SelectParameters>
                                </asp:ObjectDataSource>
                            </center>
 <h4>Home Club</h4>
    <center>                        <asp:DropDownList ID="DropDownList2" runat="server" 
            DataSourceID="ObjectDataSource2" DataTextField="name" DataValueField="id">
                            </asp:DropDownList>
        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
            SelectMethod="getEquiposPorTorneo" TypeName="BoxScore.Model.BoxScoreBD">
            <SelectParameters>
                <asp:QueryStringParameter Name="idliga" QueryStringField="liga" Type="Int32" />
                <asp:QueryStringParameter Name="idcategoria" QueryStringField="categoria" 
                    Type="Int32" />
                <asp:ControlParameter ControlID="DropDownList1" DefaultValue="0" Name="id" 
                    PropertyName="SelectedValue" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
        
        
</center>
                        </td>
                    </tr>


                    <tr align="center" >
                        <td colspan="2">
                        Fecha y Hora
                            <asp:TextBox ID="FechaTextbox" runat="server" Columns="12"></asp:TextBox>
                            
                            <asp:TextBox ID="TextBox1" runat="server" Columns="3"></asp:TextBox> 
                            <asp:NumericUpDownExtender ID="TextBox1_NumericUpDownExtender" runat="server" 
                                Enabled="True" Maximum="22" Minimum="8" RefValues="" ServiceDownMethod="" 
                                ServiceDownPath="" ServiceUpMethod="" Tag="" TargetButtonDownID="" 
                                TargetButtonUpID="" TargetControlID="TextBox1" Width="60">
                            </asp:NumericUpDownExtender>
                            : 
                            <asp:TextBox ID="TextBox2" runat="server" Columns="3"></asp:TextBox>
                           
                            
                            <asp:NumericUpDownExtender ID="TextBox2_NumericUpDownExtender" runat="server" 
                                Enabled="True" Maximum="55" Minimum="0" RefValues="" ServiceDownMethod="" 
                                ServiceDownPath="" ServiceUpMethod="" Step="5" Tag="" TargetButtonDownID="" 
                                TargetButtonUpID="" TargetControlID="TextBox2" Width="60">
                            </asp:NumericUpDownExtender>
                           
                            
                        </td>
                        
                    </tr>
                    <tr>
                        <td>Tipo:</td>
                        <td>
                            <asp:DropDownList ID="DropDownList4" runat="server" 
                                DataSourceID="ObjectDataSource4" DataTextField="descripcion" 
                                DataValueField="id">
                            </asp:DropDownList>
                            <asp:ObjectDataSource ID="ObjectDataSource4" runat="server" 
                                SelectMethod="getTabla" TypeName="BoxScore.Model.BoxScoreBD">
                                <SelectParameters>
                                    <asp:Parameter DefaultValue="pgame" Name="tabla" Type="String" />
                                    <asp:Parameter DefaultValue="type" Name="campo" Type="String" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                        </td>
                    
                    </tr>                    



                    <tr>
                        <td>Estadio:</td>
                        <td>
                            <asp:DropDownList ID="DropDownList3" runat="server" 
                                DataSourceID="ObjectDataSource3" DataTextField="name" DataValueField="id">
                            </asp:DropDownList>
                            <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" 
                                SelectMethod="getEstadiumByTournament" TypeName="BoxScore.Model.BoxScoreBD">
                                <SelectParameters>
                                    <asp:QueryStringParameter Name="idliga" QueryStringField="liga" Type="Int32" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                        </td>
                        
                    </tr>
                    <tr>
                        <td colspan="2" align="center">
                            <asp:Button ID="Button1" runat="server" Text="Cancelar" />
                            &nbsp;
                            <asp:Button ID="Button2" runat="server" Text="Guardar" />
                            
                            
                        </td>
                    </tr>
                    
                
                </table>
                
                </div>
                            <asp:CalendarExtender ID="FechaTextbox_CalendarExtender" runat="server" 
                                Enabled="True" Format="yyyy-MM-dd" TargetControlID="FechaTextbox">
                            </asp:CalendarExtender>
                            <asp:TextBoxWatermarkExtender ID="FechaTextbox_TextBoxWatermarkExtender" 
                                runat="server" Enabled="True" TargetControlID="FechaTextbox" 
                                WatermarkText="<<Fecha>>">
                            </asp:TextBoxWatermarkExtender>
                            
                            
  
    </ContentTemplate>
    
    </asp:UpdatePanel>



</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="resultados" runat="server">
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="proximos" runat="server">
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="publicidadAjena" runat="server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="publicidad" runat="server">
</asp:Content>
